﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Medianamik.UI.Web.MVP
{
    public class NumericalEventArgs : EventArgs
    {
        public NumericalEventArgs(int? number)
        {
            Number = number;
        }

        public NumericalEventArgs(string number)
        {
            int test;
            if (int.TryParse(number, out test))
                Number = test;
        }

        public int? Number
        {
            get;
            private set;
        }
    }
}
